package co.fitstart.weapp.api.handler;

/**
 * 
 * @author haiyan_xiao
 *
 */
public interface SmsSender {

    /**
     * 
     * @param mobile
     * @return
     */
    public String generateVerifyCode(String mobile);

    /**
     * 
     * @param mobile
     * @param code
     * @return
     */
    public boolean sendVerifyCode(String mobile, String code);

    /**
     * 
     * @param mobile
     * @param code
     * @param token
     * @return
     */
    public boolean checkVerifyCode(String mobile, String code, String token);

    /**
     * 
     * @param mobile
     * @param content
     * @return
     */
    public boolean sendMessage(String mobile, String content);
}
